/***************************************************************************
 *   Copyright (C) 2008 by Rysiek Król,,,   *
 *   rysiek@Babylon2   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef SEARCHPARAMETER_H
#define SEARCHPARAMETER_H


#include <QMap>
#include <QSet>
#include <QDateTime>
class QDir;
class QString;


/**
	@author Rysiek Król,,, <rysiek@Babylon2>
*/
class SearchParameter{
public:
	enum DateType{DateStart = 0, DateEnd = 1};
	enum SearchType{ Place = 0, Note = 1, FileName = 2};

    SearchParameter();
    ~SearchParameter();

	void setParameters(QMap< SearchParameter::SearchType, QString >* theValue);
	void setKeywords(QSet< QString >* theValue);
	void setDateParameter(QMap< SearchParameter :: DateType, QDateTime >* theValue);
	void setIsRecursive(bool theValue);
	bool getRecursive() const;
	QMap< SearchParameter :: SearchType, QString >* getParameters() const;
	QSet< QString >* getKeywords() const;

	QMap< SearchParameter :: DateType, QDateTime >* getDateParameter() const;

	void setDir(QDir* theValue);
	

	QDir* getDir() const;
	
	

private:
	
	bool isRecursive;
	QDir *dir;
	QMap< SearchParameter::SearchType, QString > *parameters;
	QSet<QString> *keywords;
	QMap<SearchParameter::DateType, QDateTime> *dateParameter;
};

#endif
